package com.dreamer.domain.lottery;

import javax.persistence.Entity;
import java.util.Date;

/**
 * 参与人员
 */
@Entity
public class Player {

    private Integer id;

    private Integer lid;//抽奖活动ID

    private Integer gid;//抽中的奖品ID

    private Integer uid;//用户ID

    private Date date;//加入时间

    private Boolean open;//是否激活

    private Boolean gived;//是否抽过


    public Player() {

    }

    public Player(Integer lid, Integer gid, Integer uid, Date date, Boolean open,Boolean gived) {
        this.lid = lid;
        this.gid = gid;
        this.uid = uid;
        this.date = date;
        this.open = open;
        this.gived = gived;
    }

    public Boolean getGived() {
        return gived;
    }

    public void setGived(Boolean gived) {
        this.gived = gived;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getLid() {
        return lid;
    }

    public void setLid(Integer lid) {
        this.lid = lid;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Boolean getOpen() {
        return open;
    }

    public void setOpen(Boolean open) {
        this.open = open;
    }
}
